package com.tvein.sanguo.controller
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;
	//custom
	import com.tvein.sanguo.common.CommonConstants;
	import com.tvein.SanGuo;
	import com.tvein.sanguo.model.ServerProxy;
	import com.tvein.sanguo.model.FilesProxy;
	import com.tvein.sanguo.model.SFSProxy;
	import com.tvein.sanguo.view.ApplicationMediator;
	import com.tvein.sanguo.view.SystemMediator;
//
    public class SanGuoStartupCommand extends SimpleFabricationCommand
    {
		override public function execute(note:INotification):void
		{
			var sanguo:SanGuo = note.getBody() as SanGuo;
			facade.registerProxy(new ServerProxy());
			facade.registerProxy(new FilesProxy());
			facade.registerProxy(new SFSProxy());
			
			facade.registerMediator(new SystemMediator(sanguo));
			facade.registerMediator(new ApplicationMediator(sanguo));
		}
    }
}